/*!
 * \file jxbankc_interface_gsreqroot.h
 *
 * \brief 调用核心交易公共接口
 *
 * All Rights Reserved Copyright (C) 2014 broada,Co.,Ltd.
 *
 * \version 1.0
 * \author songbb
 * \date 2017/04/21
 *
 */

#ifndef __JXBANKC_INTERFACES_H_
#define __JXBANKC_INTERFACES_H_

typedef struct __st_jxbankc_interface_map {
    char arr_field_name[20];
    int i_field_len;
} Jxbankc_interface_map;

Jxbankc_interface_map arr_jxbankc_interface_gsreqroot_maps[] = {
        {"ComReq",    20},
        {"ClientSys", 2},
        {"Channel",   3},
        {"SysCode",   2},
        {"WorkCode",  8},
        {"TlrNbr",    6},
        {"UsrPass",   16},
        {"Date",      11},
        {"Time",      11},
        {"MacType",   1},
        {"MacCode",   8},
        {"GoHead",    1},
        {"ComLogKey", 20},
        {"CntryCode", 3},
        {"CityCode",  6},
        {"DevType",   3},
        {"DevNbr",    10},
        {"DevAddr",   62},
        {"IHisTrace", 30},
        {"IClose",    1},
        {"PfConvNbr", 3},
};

Jxbankc_interface_map arr_jxbankc_interface_gsrsproot_maps[] = {
        {"ComReq",       20},
        {"MsgCode",      7},
        {"MsgLevel",     2},
        {"MsgFlag",      1},
        {"MacType",      1},
        {"MacCode",      8},
        {"GoHead",       1},
        {"ComLogKey",    20},
        {"IFlowType",    1},
        {"IHisTrace",    30},
        {"IClose",       1},
        {"DbgridChange", 1},
        {"Err2Put",      1},
};

Jxbankc_interface_map arr_jxbankc_interface_gsrspmsg_maps[] = {
        {"MsgText", 192},
};

Jxbankc_interface_map arr_jxbankc_interface_gsiflow_maps[] = {
        {"MsgCode",    7},
        {"MsgText",    192},
        {"MsgType",    1},
        {"MsgRef",     62},
        {"MapLocParm", 20},
        {"MapValParm", 20},
        {"MapUnitLen", 11},
};

Jxbankc_interface_map arr_jxbankc_interface_gsreqspots_maps[] = {
        {"xSancTlr",    6},
        {"xTlrPass",    20},
        {"xBookSeq",    1},
        {"xCvcCode",    6},
        {"xFingerMap1", 250},
        {"xFingerMap2", 250},
        {"xFingerMap3", 250},
        {"xFingerMap4", 250},
        {"xFingerMap5", 250},
        {"xFingerMap6", 250},
        {"xFingerMap7", 250},
        {"xFingerMap8", 250},
};

Jxbankc_interface_map arr_jxbankc_interface_pnctl_maps[] = {
        {"BillNbr",    15},
        {"PrnCode",    4},
        {"PaperName",  62},
        {"PaperStyle", 4},
        {"PrnTmpl",    30},
        {"AgPrintCtl", 1},
        {"CopyCnt",    11},
        {"CurTlr",     6},
        {"CheckTlr",   6},
        {"SancTlr",    6},
        {"DayEndCode", 3},
        {"Reserv20",   20},
};

Jxbankc_interface_map arr_jxbankc_interface_rt_booktrans_maps[] = {
        {"AcctDate",       11},
        {"TransSeq",       11},
        {"TransRichNbr",   35},
        {"AcctSeq",        5},
        {"TransDir",       1},
        {"RvsTag",         1},
        {"_GSCcyNbr",      3},
        {"CcyCode",        3},
        {"_GSCcyType",     1},
        {"TransAmt",       17},
        {"OnlBal",         17},
        {"_ACTransCode",   4},
        {"CltText",        42},
        {"_GSChannelCode", 3},
        {"TransNbr",       15},
        {"TlrNbr",         6},
        {"TransBrn",       6},
        {"PageNbr",        11},
        {"LineNbr",        11},
        {"ChangDate",      11},
        {"ChangTime",      11},
        {"Reserv20",       20},
};

Jxbankc_interface_map arr_jxbankc_interface_rcocxwdw_maps[] = {
        {"RichNbr",        35},
        {"Pass",           20},
        {"PassTsmNbr",     16},
        {"PassKeySeq",     2},
        {"PassCheckValue", 16},
        {"DlgTag",         1},
        {"SelTag",         1},
        {"SgnTag",         1},
        {"CntryCode",      3},
        {"IdenType",       3},
        {"IdenNbr",        30},
        {"IdenDate",       11},
        {"BillType",       1},
        {"DgtSgn",         20},
        {"LmtAmt",         17},
        {"PassKeyServer",  11},
        {"PassCipher",     65},
};

Jxbankc_interface_map arr_jxbankc_interface_rcocxbook_maps[] = {
        {"RichNbr", 35},
        {"BookNbr", 20},
        {"BookSeq", 1},
        {"CvcCode", 6},
        {"Track1",  80},
        {"Track2",  40},
        {"Track3",  110},
        {"MagCode", 3},
        {"DmtFlag", 1},
};

Jxbankc_interface_map arr_jxbankc_interface_rc_feeset_maps[] = {
        {"Line01", 62},
        {"Line02", 42},
        {"Line03", 14},
        {"Line04", 42},
        {"Line05", 62},
        {"Line06", 42},
        {"Line07", 62},
        {"Brn",    14},
        {"Opr",    14},
        {"Chk",    14},
        {"Aut",    14},
        {"Ref",    22},
};

Jxbankc_interface_map arr_jxbankc_interface_rc_feedtl_maps[] = {
        {"_PTPRODCODE",   8},
        {"_FEFEITEM",     5},
        {"FeeAmtCal",     17},
        {"_GSCCYNBR_Cal", 3},
        {"DisCnt",        6},
        {"ExgRate",       13},
        {"FeeAmtPay",     17},
        {"_GSCCYNBR_Pay", 3},
};

#endif
